:root {
  --table-cols: 5;
}

html {
  overflow: visible !important;
  font-family: "Meiryo", sans-serif;
  font-size: 16;
}

.mistake-row {
  height: 25px;
  align-items: center;
}

.mistake-row .mistake-icon {
  order: 2;
  margin-right: 3px;
  font-size: 20px;
}

.mistake-text {
  order: 3;
}

.mistake-time {
  order: 1;
  margin-right: 5px;
}

.mistake-collapser {
  order: 5;
  margin-left: 5px;
}

.mistake-collapser::before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;

  /* these are icon fonts, so there's no fallback for this */
  /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f138';
}

.mistake-collapser.expanded::before {
  content: '\f13a';
}

.summary {
  margin: 5px;
}

.section {
  margin-bottom: 20px;
  max-width: 800px;
}

.section-header {
  display: flex;
  font-weight: bold;
  font-size: 18;
}

.section-header > div {
  margin-right: 5px;
}

.section-rows {
  padding-left: 10px;
  max-width: 500px;
}

.mistake-table {
  display: grid;
  grid-template-columns: repeat(var(--table-cols), max-content);
  margin: 20px;
}

.mistake-table div {
  padding-top: 3px;
  padding-bottom: 3px;
  text-align: right;
  box-sizing: border-box;

  /* give all columns a light border, override first column below */
  border-right: solid grey 1px;
}

/* first row */
.mistake-table .header {
  border-bottom: solid black 2px;
  order: -1;
}

/* first row, not first column */
.mistake-table .mistake-icon {
  text-align: center;
  min-width: 30px;
  width: 100%;
}

/* first column */
.mistake-table .name {
  padding-right: 5px;
  border-right: solid black 2px;
}

/* not first column, not first row */
.mistake-table .number {
  /* numbers are aligned right, but "centered" a little with padding */
  padding-left: 12px;
  padding-right: 12px;
}

.death-details {
  display: none;
}

.death-details.expanded {
  margin-left: 40px;
  display: grid;
  grid-template-columns: max-content minmax(50px, max-content) minmax(10px, max-content) max-content max-content;
  column-gap: 10px;
}

.death-row-hp {
  text-align: right;
}

.death-row-amount {
  text-align: right;
  font-weight: bold;
}

.death-row-icon {
  width: 18px;
}

.death-details .damage {
  color: rgb(255, 0, 0);
}

.death-details .heal {
  color: rgb(16, 205, 16);
}

.death-row-icon.mistake-icon {
  order: unset;
}

.death-row-text {
  text-align: left;
}

.death-row-time {
  text-align: right;
}
